package com.kintreda.ieco_server.core.web;

public enum ReturnCode {
    SUCCESS(0),
    PARAMS_ERROR(400),
    AUTH_FAIL(401),
    FORBIDDEN(403),
    OBJECT_NOT_FOUND(404),
    SYSTEM_ERROR(500),
    SQL_ERROR(503),
    SOCKET_TIME_OUT(504);
    private final int value;

    ReturnCode(int value) {
        this.value = value;
    }

    public int code() {
        return value;
    }
}